package dao;

import entities.DocumentJdo;
import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;

import java.sql.Date;
import java.util.List;

public class DBDocumentDAOImpl implements DocumentDAO {
    private HibernateTemplate hibernateTemplate;

    public void setSessionFactory(SessionFactory sessionFactory){
        this.hibernateTemplate = new HibernateTemplate(sessionFactory);
    }

    public void addDocument(DocumentJdo document) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void removeDocument(DocumentJdo document) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void updateUser(Long documentId, DocumentJdo document) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public DocumentJdo getDocumentById(Long documentId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<DocumentJdo> getDocumentsByCompanyId(Long companyId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<DocumentJdo> getDocumentsByGroupId(Long groupId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<DocumentJdo> getDocumentsByDateRegistered(Date dateRegistered) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<DocumentJdo> getDocumentsRegisteredInPeriod(Date startDate, Date endDate) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
